from django.contrib import admin
from catalog.models import Article

class ArticleAdmin(admin.ModelAdmin):
    list_display   = ('owner', 'title', 'description', 'mail', 'tel', 'date', 'image')
    list_filter    = ('title','owner', 'date')
    hierarchy = ('date')
    search_fields  = ('title', 'owner')
    
admin.site.register(Article, ArticleAdmin)